package by.grsu.kononovich.page;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;

import by.grsu.kononovich.page.simple.AdministratorsListPage;
import by.grsu.kononovich.page.simple.AutosListPage;
import by.grsu.kononovich.page.simple.ClientsListPage;
import by.grsu.kononovich.page.simple.DamageInfoPage;


public class MainPage extends WebPage {
	public MainPage(){
		super();
		add(new Link("goToAdminPage") {
			@Override
			public void onClick() {
				setResponsePage(new AdministratorsListPage());
			}
		});
		
		add(new Link("goToAutosPage") {
			@Override
			public void onClick() {
				setResponsePage(new AutosListPage());
			}
		});
		
		add(new Link("goToClientsPage") {
			@Override
			public void onClick() {
				setResponsePage(new ClientsListPage());
			}
		});
		
		add(new Link("goToDamageInfoPage") {
			@Override
			public void onClick() {
				setResponsePage(new DamageInfoPage());
			}
		});
	}

}